package com.oa.srms.apps.actions;

import com.oa.srms.apps.entity.staff.StaffInfoValue;

@SuppressWarnings("serial")
public class LoginAction extends BasicAction {
	
	@Override
	public String execute() throws Exception {
		staffInfo = (StaffInfoValue)session.get("login_staffInfo");
		return "toMain";
	}
	
	public String home() throws Exception{
		staffInfo = (StaffInfoValue)session.get("login_staffInfo");
		return "toHome";
	}
	
	public String logout() throws Exception{
		session.put("login_staffInfo", null);
		return "toLogin";
	}
	
}
